    

<cfset listEvent = viewstate.getValue("myself") & viewstate.getValue("xe.list")  />
<cfset tblpagesRecord = viewstate.getValue("tblpagesRecord") />
<cfset keyString = "&pageID=#urlEncodedFormat(tblpagesRecord.getpageID())#" />
<cfset commitEvent = viewstate.getValue("myself") & viewstate.getValue("xe.commit") & keyString />
<cfset validation = viewstate.getValue("tblpagesValidation", structNew()) />

<cfset isNew = true />
		

		<cfif (not isNumeric(tblpagesRecord.getpageID()) and len(tblpagesRecord.getpageID())) or (isNumeric(tblpagesRecord.getpageID()) and tblpagesRecord.getpageID())>
			<cfset isNew = false />
		</cfif>
	
		
<cfoutput>
<div id="breadcrumb">
		<a href="#listEvent#">Tblpagess</a> / 
		<cfif isNew>
			Add New Tblpages
		<cfelse>
			#tblpagesRecord.getpageName()#
		</cfif>
</div>
</cfoutput>
<br />


								
<cfform action="#commitEvent#" class="edit">
    
<fieldset>
    

    <cfoutput>
    <input type="hidden" name="pageID" value="#tblpagesRecord.getpageID()#" />
    </cfoutput>
  
        <div class="formfield">
	        <label for="projectID" <cfif structKeyExists(validation, "projectID")>class="error"</cfif>><b>Project I D:</b></label>
	        <div>
	        
		        <cfinput 
									type="text" 
									class="input" 
									 
									id="projectID" 
									name="projectID" 
									
										value="#tblpagesRecord.getprojectID()#" 
									
						/>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="projectID" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="pageName" <cfif structKeyExists(validation, "pageName")>class="error"</cfif>><b>Page Name:</b></label>
	        <div>
	        
		        <cfinput 
									type="text" 
									class="input" 
									maxLength="100" 
									id="pageName" 
									name="pageName" 
									
										value="#tblpagesRecord.getpageName()#" 
									
						/>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="pageName" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="pageText" <cfif structKeyExists(validation, "pageText")>class="error"</cfif>><b>Page Text:</b></label>
	        <div>
	        
		        <textarea class="input" id="pageText" name="pageText"><cfoutput>#tblpagesRecord.getpageText()#</cfoutput></textarea>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="pageText" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="pageDescription" <cfif structKeyExists(validation, "pageDescription")>class="error"</cfif>><b>Page Description:</b></label>
	        <div>
	        
		        <cfinput 
									type="text" 
									class="input" 
									maxLength="100" 
									id="pageDescription" 
									name="pageDescription" 
									
										value="#tblpagesRecord.getpageDescription()#" 
									
						/>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="pageDescription" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="pageSQL" <cfif structKeyExists(validation, "pageSQL")>class="error"</cfif>><b>Page S Q L:</b></label>
	        <div>
	        
		        <textarea class="input" id="pageSQL" name="pageSQL"><cfoutput>#tblpagesRecord.getpageSQL()#</cfoutput></textarea>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="pageSQL" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="onSaveText" <cfif structKeyExists(validation, "onSaveText")>class="error"</cfif>><b>On Save Text:</b></label>
	        <div>
	        
		        <cfinput 
									type="text" 
									class="input" 
									maxLength="200" 
									id="onSaveText" 
									name="onSaveText" 
									
										value="#tblpagesRecord.getonSaveText()#" 
									
						/>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="onSaveText" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="onSaveURL" <cfif structKeyExists(validation, "onSaveURL")>class="error"</cfif>><b>On Save U R L:</b></label>
	        <div>
	        
		        <cfinput 
									type="text" 
									class="input" 
									maxLength="200" 
									id="onSaveURL" 
									name="onSaveURL" 
									
										value="#tblpagesRecord.getonSaveURL()#" 
									
						/>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="onSaveURL" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="onSaveEmails" <cfif structKeyExists(validation, "onSaveEmails")>class="error"</cfif>><b>On Save Emails:</b></label>
	        <div>
	        
		        <cfinput 
									type="text" 
									class="input" 
									maxLength="255" 
									id="onSaveEmails" 
									name="onSaveEmails" 
									
										value="#tblpagesRecord.getonSaveEmails()#" 
									
						/>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="onSaveEmails" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="closeWindow" <cfif structKeyExists(validation, "closeWindow")>class="error"</cfif>><b>Close Window:</b></label>
	        <div>
	        
		        <cfinput 
									type="text" 
									class="input" 
									maxLength="2" 
									id="closeWindow" 
									name="closeWindow" 
									
										value="#tblpagesRecord.getcloseWindow()#" 
									
						/>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="closeWindow" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="createDate" <cfif structKeyExists(validation, "createDate")>class="error"</cfif>><b>Create Date:</b></label>
	        <div>
	        
		        <cfinput 
									type="text" 
									class="input" 
									 
									id="createDate" 
									name="createDate" 
									
										value="#dateFormat(tblpagesRecord.getcreateDate(), "m/d/yyyy")# #timeFormat(tblpagesRecord.getcreateDate(), "h:mm TT")#" 
									
						/>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="createDate" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="userID" <cfif structKeyExists(validation, "userID")>class="error"</cfif>><b>User I D:</b></label>
	        <div>
	        
		        <cfinput 
									type="text" 
									class="input" 
									 
									id="userID" 
									name="userID" 
									
										value="#tblpagesRecord.getuserID()#" 
									
						/>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="userID" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="modDate" <cfif structKeyExists(validation, "modDate")>class="error"</cfif>><b>Mod Date:</b></label>
	        <div>
	        
		        <cfinput 
									type="text" 
									class="input" 
									 
									id="modDate" 
									name="modDate" 
									
										value="#dateFormat(tblpagesRecord.getmodDate(), "m/d/yyyy")# #timeFormat(tblpagesRecord.getmodDate(), "h:mm TT")#" 
									
						/>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="modDate" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="modUserID" <cfif structKeyExists(validation, "modUserID")>class="error"</cfif>><b>Mod User I D:</b></label>
	        <div>
	        
		        <cfinput 
									type="text" 
									class="input" 
									 
									id="modUserID" 
									name="modUserID" 
									
										value="#tblpagesRecord.getmodUserID()#" 
									
						/>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="modUserID" validation="#validation#" />
        </div>
    
        <div class="formfield">
	        <label for="groups" <cfif structKeyExists(validation, "groups")>class="error"</cfif>><b>Groups:</b></label>
	        <div>
	        
		        <cfinput 
									type="text" 
									class="input" 
									maxLength="255" 
									id="groups" 
									name="groups" 
									
										value="#tblpagesRecord.getgroups()#" 
									
						/>
		      
	        </div>
	        <cfmodule template="/ModelGlue/customtags/validationErrors.cfm" property="groups" validation="#validation#" />
        </div>
    
<cfoutput>
<div class="controls">
 	<input type="submit" value="Save" />
  <input type="button" value="Cancel" onclick="document.location.replace('#listEvent#')" />
</div>
</cfoutput>
</fieldset>
</cfform>
    
	
